package com.share.device.emqx.handler.impl;

import com.alibaba.fastjson.JSONObject;
import com.share.device.emqx.annotation.ItCamEmqx;
import com.share.device.emqx.constant.EmqxConstants;
import com.share.device.emqx.handler.MassageHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/*
 * @author: cammy
 * @description: 充电宝插入处理类
 */
@Slf4j
@Component
@ItCamEmqx(topic = EmqxConstants.TOPIC_POWERBANK_CONNECTED)
public class PowerBankConnectedHandler implements MassageHandler {

    @Override
    public void handleMessage(JSONObject message) {
        log.info("handleMessage: {}", message.toJSONString());
    }
}